package com.xbongbong.pro.payment.pojo.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *  根据发票id获取金额明细pojo
 * @author yuqian
 * @version v1.0
 * @date 19/11/14 012 10:15
 * @update 19/11/14 012 10:15
 * @since v1.0
 */

@Getter
@Setter
@ToString
public class RelationshipGetPojo implements Serializable {

    private static final long serialVersionUID = 6748719128940059136L;
    /**
     * 关联合同的id
     */
    private Long contractId;
    /**
     * 关联合同的编号
     */
    private String contractNo;
    /**
     * 关联应收款的id
     */
    private Long paymentId;

    /**
     * 关联应收款的编号
     */
    private String paymentNo;

    /**
     * 关联回款单的id
     */
    private Long paymentSheetId;

    /**
     * 关联回款单的编号
     */
    private String paymentSheetNo;

    /**
     * 合同金额
     */
    private Double contractAmount;
    /**
     * 合同已开票金额
     */
    private Double contractInvoiceAmount;

    /**
     * 应收款收款金额
     */
    private Double paymentAmount;
    /**
     * 应收款开票金额
     */
    private Double paymentInvoiceAmount;
    /**
     * 回款单金额
     */
    private Double paymentSheetAmount;
    /**
     * 回款单开票金额
     */
    private Double paymentSheetInvoiceAmount;

    private Integer isRed;

    public RelationshipGetPojo() {
    }

    public RelationshipGetPojo(Long contractId, String contractNo, Double contractAmount, Double contractInvoiceAmount) {
        this.contractId = contractId;
        this.contractNo = contractNo;
        this.contractAmount = contractAmount;
        this.contractInvoiceAmount = contractInvoiceAmount;
    }

    public RelationshipGetPojo(Long contractId, String contractNo, Long paymentId, String paymentNo, Long paymentSheetId, String paymentSheetNo, Double contractAmount, Double contractInvoiceAmount, Double paymentAmount, Double paymentInvoiceAmount, Double paymentSheetAmount, Double paymentSheetInvoiceAmount) {
        this.contractId = contractId;
        this.contractNo = contractNo;
        this.paymentId = paymentId;
        this.paymentNo = paymentNo;
        this.paymentSheetId = paymentSheetId;
        this.paymentSheetNo = paymentSheetNo;
        this.contractAmount = contractAmount;
        this.contractInvoiceAmount = contractInvoiceAmount;
        this.paymentAmount = paymentAmount;
        this.paymentInvoiceAmount = paymentInvoiceAmount;
        this.paymentSheetAmount = paymentSheetAmount;
        this.paymentSheetInvoiceAmount = paymentSheetInvoiceAmount;
    }
}
